package cn.minimelon.bittermelon.solon;

import com.zaxxer.hikari.HikariDataSource;
import org.noear.solon.annotation.Bean;
import org.noear.solon.annotation.Configuration;
import org.noear.solon.annotation.Inject;

import javax.sql.DataSource;

@Configuration
public class GlobalConfig {

    @Bean
    public DataSource master(@Inject("${melon.master}") HikariDataSource dataSource) {
        return dataSource;
    }

}
